#pragma once

#include "MatImgDef.h"
#include "xkMatrixPos.h"

class xhMatImage :public xkMatrixPos
{
public:
	xhMatImage(void);
	~xhMatImage(void);

public:
	int Initialize();
	int UnInitialize();

public:
	int ImageBuffer(zkImgBitInfo *pImgInfo,zkMatResult *pMatResult);

private:
	int FindRectPoint(int &m1,int &m2,int &n1,int &n2);
	int GetK(zkPoint m1,zkPoint m2,zkPoint n1,zkPoint n2,float &fK1,float &fK2);

public:
	std::vector<zkPoint>m_arPoints;
	std::vector<zkPoint>m_arLine1;
	std::vector<zkPoint>m_arLine2;
	std::vector<zkPoint>m_arRefPoint;
	
};
